<html>
<head><meta charset="utf-8"><title>Embedded files in crates? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedded.20files.20in.20crates.3F.html">Embedded files in crates?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="174420123"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Embedded%20files%20in%20crates%3F/near/174420123" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedded.20files.20in.20crates.3F.html#174420123">(Aug 29 2019 at 03:18)</a>:</h4>
<p>Hello, i wonder if it is possible to "ship" arbitrary files within crates? The expectation is downstream crates can request to use them somehow in <a href="http://build.rs" target="_blank" title="http://build.rs">build.rs</a>. Or ignore silently if the data is never used. Something that is user-defined metadata.</p>



<a name="174465923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Embedded%20files%20in%20crates%3F/near/174465923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedded.20files.20in.20crates.3F.html#174465923">(Aug 29 2019 at 15:41)</a>:</h4>
<p><span class="user-mention" data-user-id="116458">@Charles Lew</span> not sure what you mean, but maybe something like <a href="https://crates.io/crates/rust-embed" target="_blank" title="https://crates.io/crates/rust-embed">https://crates.io/crates/rust-embed</a>?</p>



<a name="174471036"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Embedded%20files%20in%20crates%3F/near/174471036" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedded.20files.20in.20crates.3F.html#174471036">(Aug 29 2019 at 16:46)</a>:</h4>
<p>Thanks, this is helpful. (Intended to create this topic in the general channel but got it wrong)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>